//
//  WAWeatherProvider.h
//  WeatherApp
//
//  Created by Yuliya Grasevych on 23.07.14.
//  Copyright (c) 2014 Yuliya Grasevych. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "WALocation.h"

extern NSString *const kCurrentLocationKey;
extern NSString *const kLocationWeatherDidUpdate;
extern NSString *const kLocationWeatherBackgroundDidUpdate;

@interface WAWeatherProvider : NSObject

+(id)sharedInstance;

@property (nonatomic) NSArray *locations;
@property (nonatomic) NSDictionary *locationsWeathers;
@property (nonatomic) WALocation *currentLocation;

-(void)addLocation:(id)val;
-(void)removeLocation:(id)val;

-(WALocation *)locationForKey:(NSObject *)locationKey;
-(void)updateAllLocations;
-(void)updateLocationForKey:(NSObject <NSCopying> *)locationKey;

@end
